<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>

<!DOCTYPE html>
<html xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Change Mail</title>
<link href="../CSS/main.css" rel="stylesheet" type="text/css">
<link href="../CSS/menu.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../CSS/validationEngine.jquery.css"
	type="text/css" />

<script type="text/javascript" src="../JS/jquery.js"></script>
<script type="text/javascript"
	src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="../JS/UI.js"></script>
<script type="text/javascript" src="../JS/errorhandler_startseite.js"></script>


<script src="../JS/jquery.validationEngine-de.js" type="text/javascript"
	charset="utf-8"></script>
<script src="../JS/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>

<c:if test="${empty sessionScope.id}">
	<c:redirect url="../index.jsp?error=3" />
</c:if>

<script>
	$(document).ready(function() {
		$("#Changeemail").validationEngine();
	});
</script>
</head>
<body>


	<div id="aussenwrapper">
		<div id="innenwrapper">

			<!-- HEADER -->
			<div id="header">
				<div id="logo">
					<img src="../Image/Final.png" height="150" />
				</div>
			</div>

			<!--  Content-Bereich -->
			<div id="content">
				<form action="../Beans/change_bean.jsp" method="post"
					id="Changeemail">
					<div id="inputs">
						<h1>E-Mail ändern</h1>
						<input class="validate[required, custom[email]]" name="newMail"
							type="text" placeholder="Neue E-Mail"> <input
							class="validate[required, custom[email]]" name="oldMail"
							type="text" placeholder="Alte E-Mail"> <input
							class="validate[required]" name="oldPasswort" type="password"
							placeholder="Passwort"> <input name="mode" type="hidden"
							value="email"> <input type="submit" value="Bestätigen"
							class="button" />
					</div>
				</form>
			</div>
			<!--Ende content-->

		</div>
		<!--Ende innenwrapper-->


	</div>
	<!--Ende aussenwrapper-->

	<div id="footer">
		<h2>INTELLIFRIDGE</h2>
	</div>

</body>
</html>